<html>
<head>
    <title>修改成功</title>
</head>
<style>
    *{
        margin: 0px auto;
    }
</style>
<body>

<#if type="dept">
<div style="text-align: center">
<h4 class="refresh_text">部门信息修改成功，<strong id="second_show">3</strong>秒钟之后将带您进入部门管理首页。</h4>
</div>
<script type="text/javascript">
    var timeout = 3;
    function showError() {
        document.getElementById("second_show").innerHTML = timeout;
        timeout--;
        if (timeout == 0) {
            window.location.href = "/getAllDept";
        } else {
            setTimeout("showError()", 1000);
        }
    }

    showError();
</script>
</#if>
<#if type="Admin">
<div style="text-align: center">
    <h4 class="refresh_text">员工信息修改成功，<strong id="second_show">3</strong>秒钟之后将带您进入员工管理首页。</h4>
</div>
<script type="text/javascript">
    var timeout = 3;
    function showError() {
        document.getElementById("second_show").innerHTML = timeout;
        timeout--;
        if (timeout == 0) {
            window.location.href = "/getAllAdmin";
        } else {
            setTimeout("showError()", 1000);
        }
    }

    showError();
</script>
</#if>
<#if type="成绩信息">
<div style="text-align: center">
    <h4 class="refresh_text">成绩信息修改成功，<strong id="second_show">3</strong>秒钟之后将带您进入成绩信息首页。</h4>
</div>
<script type="text/javascript">
    var timeout = 3;
    function showError() {
        document.getElementById("second_show").innerHTML = timeout;
        timeout--;
        if (timeout == 0) {
            window.location.href = "/allscore";
        } else {
            setTimeout("showError()", 1000);
        }
    }

    showError();
</script>
</#if>
<#if type="个人信息">
<div style="text-align: center">
    <h4 class="refresh_text">个人信息修改成功，<strong id="second_show">3</strong>秒钟之后将带您进入首页。</h4>
</div>
<script type="text/javascript">
    var timeout = 3;
    function showError() {
        document.getElementById("second_show").innerHTML = timeout;
        timeout--;
        if (timeout == 0) {
             top.location.href = "/index";
        } else {
            setTimeout("showError()", 1000);
        }
    }

    showError();
</script>
</#if>
</body>
</html>
